<extend name="Base/common"/>
<block name="Content">
<div class="am-cf am-padding-top">
    <div class="am-fl am-cf">
        <i class="am-icon-file"></i>
        <strong class="am-text-primary am-text-lg">轮播效果图</strong>
    </div>
    <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
</div>
<div class="am-u-sm-12 am-u-md-6" style="padding:0px">
    <div class="am-btn-toolbar">
        <div class="am-btn-group am-btn-group-xs">
            <a type="button" class="am-btn am-btn-success" href="{:U('editAction')}">
            	<span class="am-icon-plus"></span>&nbsp;新增
            </a>
        </div>
    </div>
</div>

<div class="am-fr am-padding-right am-u-md-3">
   	<form class="am-form" action="{:U('Index')}" method="post">
		<div class="am-input-group am-input-group-sm">
			<input type="text" class="am-form-field am-input-sm" placeholder="活动名称" name='name' value="{$name}"/>
			<span class="am-input-group-btn">
				<button class="am-btn am-btn-default" type="submit">
                         搜索
                </button>
            </span>
		</div>
	</form>
</div>

<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-3 am-avg-lg-4 am-gallery-imgbordered"
   	data-am-gallery="{}">
   	
	<notempty name="list">
    	<foreach name="list" item="banner">
   			
   			<li>
       			<div class="am-gallery-item">
           			<a href="{$banner.fullpath}" class="">
             				<img src="{$banner.fullpath}" alt="{$banner.name}"/>
           			</a>
           			<h3 class="am-gallery-title">
           				{$banner.name}
           			</h3>
           			<p>
		          		<a class="am-btn am-btn-primary am-btn-xs" 
		          			href="{:U('editAction', array('banner_id'=>$banner['banner_id']))}">修改</a>
		          		<button type="button" class="am-btn am-btn-danger am-btn-xs ajax-get confirm"
		          			href="{:U('del', array('banner_id'=>$banner['banner_id']))}">删除</button>
   					</p>
       			</div>
     		</li>
   		
   		</foreach>
   	<else/>暂时还没有内容!
   	</notempty>
</ul>

<!-- 分页 -->
<ul class="am-pagination am-pagination-default am-no-layout amz-social">
    {$_page}
</ul>
</block>
